package com.jwds.digital.bios.business.api.controller.belt;

import com.jwds.digital.bios.business.core.infrastructure.dto.feign.BasicDeviceReqDTO;
import com.jwds.digital.bios.business.core.infrastructure.vo.feign.BasicDeviceRespVO;
import com.jwds.digital.bios.business.rpc.feign.BasicDeviceFeign;
import com.jwds.tdc.framework.application.lib.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@Api(tags = "设备列表")
@RestController
@RequestMapping("/belt")
public class BeltListController {
    @Resource
    private  BasicDeviceFeign basicDeviceFeign;

    @ApiOperation(value = "设备列表")
    @PostMapping("/all")
    public BaseResponse<List<BasicDeviceRespVO>> all(){
        BasicDeviceReqDTO query = new BasicDeviceReqDTO();
        query.setIsDeleted(0);
        return basicDeviceFeign.list(query);
    }



}
